﻿using UnityEngine;
using System.Collections;

public class Shot
{
	private Aim m_theAim;
	private BallsPerformer m_theBallsPerformer;
	private PhysicsManager m_physicsManager;

	public Shot ()
	{
		GameObject physicsGO = GameObject.Find("Physics");
		m_physicsManager = physicsGO.GetComponent<PhysicsManager>();
		m_theAim = m_physicsManager.TheAim;
		m_theBallsPerformer = m_physicsManager.TheBallsPerformer;
	}

	public void Shoot (Transform cueBallTrans, Vector3 direction, float power, Vector3 position)
	{
		m_theAim.ToAim(cueBallTrans, direction, power, position);

	}
}
